/**
 * ProjectName:  mall-service
 * FileName:  Demand.java
 * PackageName:  com.cyou.mall.entity
 * Copyright (c) 2013, CYOU All Rights Reserved.
*/
package com.blx.dao;

import org.springframework.stereotype.Component;

import com.blx.entity.Demand;
import com.blx.utils.pagination.Pagination;

/**
 * ClassName:  DemandDao. <br/>
 * Description:  DemandDao <br/>
 * @author wangwl
 * 2013-3-4 下午8:50:37 <br/>
 * @version 1.0
 */
@Component
public class DemandDao extends BaseDao<Demand> {

	/**
	 * 保存Demand实体 <br/>
	 * @param demand
	 * @author wangwl
	 * 2013-3-4 下午9:08:04
	 */
	public void saveDemand(Demand demand) {
		this.save("saveDemand", demand);
	}
	/**
	 * 更新Demand实体<br/>
	 * @param demand
	 * @author wangwl
	 * 2013-3-4 下午8:59:52
	 */
	public void updateDemand(Demand demand) {
		this.update("updateDemand", demand);
	}
	/**
	 * 删除Demand实体 <br/>
	 * @param demandId
	 * @author wangwl
	 * 2013-3-4 下午9:00:14
	 */
	public void deleteDemandById(Integer demandId) {
		this.delete("deleteDemandById", demandId);
	}
	/**
	 * 根据id获取Demand实体 <br/>
	 * @param demandId
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:00:32
	 */
	public Demand getDemandById(Integer demandId) {
		return this.get("getById", demandId);
	}
	/**
	 * 分页查询Demand <br/>
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 * @author wangwl
	 * 2013-3-4 下午9:01:23
	 */
	public Pagination<Demand> findPageDemandAll(int pageNumber, int pageSize) {
		return this.findPage("findPageAll", pageNumber, pageSize);
	}
}



